package org.dromara.system.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.SysUserWithdrawal;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 提现记录视图对象 sys_user_withdrawal
 *
 * @author Lion Li
 * @date 2025-07-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysUserWithdrawal.class)
public class SysUserWithdrawalVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 提现用户id
     */
    @ExcelProperty(value = "提现用户id")
    private Long userId;

    private String no;

    /**
     * 提现金额
     */
    @ExcelProperty(value = "提现金额")
    private BigDecimal amount;

    /**
     * 到账金额
     */
    @ExcelProperty(value = "到账金额")
    private BigDecimal receivedAmount;

    /**
     * 提现用户 提现标识（0：支付宝    1：银行卡）
     */
    @ExcelProperty(value = "提现用户 提现标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=：支付宝,1=：银行卡")
    private Integer identification;

    /**
     * 提现用户支付宝账号
     */
    @ExcelProperty(value = "提现用户支付宝账号")
    private String alipayAccount;

    /**
     * 提现用户支付宝实名
     */
    @ExcelProperty(value = "提现用户支付宝实名")
    private String alipayUserName;

    /**
     * 提现用户银行卡号
     */
    @ExcelProperty(value = "提现用户银行卡号")
    private String userBankCardNumber;

    /**
     * 状态1申请 2同意 3拒绝 4到账成功 5失败
     */
    @ExcelProperty(value = "状态1申请 2同意 3拒绝 4到账成功 5失败")
    private Integer approvalStatus;

    /**
     * 审批时间
     */
    @ExcelProperty(value = "审批时间")
    private Date approvalTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private String userName;

    private Date createTime;


}
